package xin.mashibo.wanjiobutest.vo;

import android.os.Parcel;
import android.os.Parcelable;

import com.wanji.etcble.bean.LoadInitCreditBean;

/**
 * @author MaShibo
 *         on 2018/3/21
 */
public class LoadInitCreditExtend extends LoadInitCreditBean implements Parcelable {

    public LoadInitCreditExtend() {
    }

    protected LoadInitCreditExtend(Parcel in) {
        setBalance(in.readString());
        setTranNum(in.readString());
        setOverBalance(in.readString());
        setKeyVersion(in.readString());
        setAlgID(in.readString());
        setRandom(in.readString());
        setMac1(in.readString());
        setTermTranSern(in.readString());
    }

    public LoadInitCreditExtend(LoadInitCreditBean bean) {
        setBalance(bean.getBalance());
        setTranNum(bean.getTranNum());
        setOverBalance(bean.getOverBalance());
        setKeyVersion(bean.getKeyVersion());
        setAlgID(bean.getAlgID());
        setRandom(bean.getRandom());
        setMac1(bean.getMac1());
        setTermTranSern(bean.getTermTranSern());
    }

    public static final Creator<LoadInitCreditExtend> CREATOR = new Creator<LoadInitCreditExtend>() {
        @Override
        public LoadInitCreditExtend createFromParcel(Parcel in) {
            return new LoadInitCreditExtend(in);
        }

        @Override
        public LoadInitCreditExtend[] newArray(int size) {
            return new LoadInitCreditExtend[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(getBalance());
        dest.writeString(getTranNum());
        dest.writeString(getOverBalance());
        dest.writeString(getKeyVersion());
        dest.writeString(getAlgID());
        dest.writeString(getRandom());
        dest.writeString(getMac1());
        dest.writeString(getTermTranSern());

    }
}
